// import AnimatorParams from "db://app-game/libs/animator/core/AnimatorParams";
// import AnimatorState from "db://app-game/libs/animator/core/AnimatorState";
// import { AnimatorStateLogic } from "db://app-game/libs/animator/core/AnimatorStateLogic";
// import { DBSkillData } from "db://assets/script/game/common/db/db-resources/db-skills/DBSkills.type";
// import { RoleSkillAnimatorEnum } from "db://assets/script/game/enum/animator/animator.enum";
// import { Role } from "../../../Role";
// import { AnimationEventHandler } from "../AnimationEventHandler";
// import { RoleUpperStateRoll } from "../skill-animator/RoleUpperStateRoll";

// /** 上半身攻击动画逻辑 */
// export class RoleUpperStateSkills extends AnimatorStateLogic {
//   /** 角色 */
//   private role: Role;
//   private anim: AnimationEventHandler;
//   private skillMap: Map<number, AnimatorStateLogic> = new Map();
//   private skillData: DBSkillData;

//   public constructor(role: Role, anim: AnimationEventHandler) {
//     super();
//     this.role = role;
//     this.anim = anim;
//     const { skillData } = this.role.RoleModelSkill;

//     // 1. 翻滚技能动画逻辑
//     this.skillMap.set(
//       RoleSkillAnimatorEnum.Roll,
//       new RoleUpperStateRoll(role, anim, skillData[RoleSkillAnimatorEnum.Roll])
//     );
//   }

//   public onEntry(state: AnimatorState, param: AnimatorParams): void {
//     const SkillType = param.getNumber("SkillType");
//     if (!this.skillMap.has(SkillType)) return;
//     this.skillMap.get(SkillType).onEntry(state, param);
//   }
//   public onUpdate(state: AnimatorState, param: AnimatorParams): void {
//     const SkillType = param.getNumber("SkillType");
//     if (!this.skillMap.has(SkillType)) return;
//     this.skillMap.get(SkillType).onUpdate(state, param);
//   }
//   public onExit(state: AnimatorState, param: AnimatorParams): void {
//     // 1.播放动画结束显示下半身节点
//     this.role.RoleView.lowerBody.node.active = true;

//     // 2.执行技能动画逻辑退出方法
//     const SkillType = param.getNumber("SkillType");
//     if (!this.skillMap.has(SkillType)) return;
//     this.skillMap.get(SkillType).onExit(state, param);
//   }
// }
